package cn.sangyy.org.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sangyangyang
 * @since 2023-05-22
 */
@TableName("t_org_shop_employee")
public class ShopEmployee extends Model<ShopEmployee> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 关联店铺表id
     */
    @TableField("shop_id")
    private Long shopId;
    /**
     * 关联员工表id
     */
    @TableField("employee_id")
    private Long employeeId;
    /**
     * 是否是管理者 1=管理者 0-员工
     */
    @TableField("is_admin")
    private Integer isAdmin;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ShopEmployee{" +
        ", id=" + id +
        ", shopId=" + shopId +
        ", employeeId=" + employeeId +
        ", isAdmin=" + isAdmin +
        "}";
    }
}
